package edu.sctu.practice.class02.yangshengyu.two10;

import java.util.Scanner;

/**
 * Created by Cullen on 2015/8/11.
 */
public class N25 {
    public static void main(String[] args) {
        System.out.println("请输入1-7中的任意数：");
        Scanner a=new Scanner(System.in);
        int m=a.nextInt();
        if(m>7 || m<1) {
            do {
                System.out.println("输入错误，请重新输入1-7中的任意数：");
                m = a.nextInt();
            } while (m > 7 || m < 1);
        }
        switch (m){
            case 1:
                System.out.println("Monday!");break;
            case 2:
                System.out.println("Tuesday!");break;
            case 3:
                System.out.println("Wednesday!");break;
            case 4:
                System.out.println("Thursday!");break;
            case 5:
                System.out.println("Friday!");break;
            case 6:
                System.out.println("Saturday!");break;
            case 7:
                System.out.println("Sunday!");break;

        }
    }
}
